package com.zisuyi.game.sdk.game.bean;

public class AndroidJsBean {
    public static final int CODE_SUCCESS = 0;
    public static final int CODE_FAIL = -1;
    private String type;
    private String json;
    private String message;
    private int code;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public static AndroidJsBean success(String type, String json) {
        AndroidJsBean bean = new AndroidJsBean();
        bean.setCode(CODE_SUCCESS);
        bean.setJson(json);
        bean.setType(type);
        return bean;
    }

    public static AndroidJsBean fail(String type, String json) {
        AndroidJsBean bean = new AndroidJsBean();
        bean.setCode(CODE_FAIL);
        bean.setJson(json);
        bean.setType(type);
        return bean;
    }
}
